package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Order;

import java.util.List;
import java.util.Map;

public interface OrderDao {

    long findCountByOrganId(String id);

    public void add(Order order);

    public List<Order> findByCondition(Order order);

    public Map findById4Detail(Integer id);
    //查询每日预约数
    public Integer findOrderCountByDate(String date);

    public Integer findOrderCountAfterDate(String date);
    //查询每日到诊数
    public Integer findVisitsCountByDate(String date);

    public Integer findVisitsCountAfterDate(String date);

    public List<Map> findHotSetmeal();

    Page<Map<String, Object>> findOrderInfosByConditions(Map map);

    void update(Map<String,Object> order);

    void delete(int id);

}
